package cn.snowsoft.iot.module.cps.api.equipment.dto;

import cn.snowsoft.iot.framework.mybatis.core.entity.TenantEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;


@Data
@EqualsAndHashCode(callSuper = false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class EquipmentPointDTO extends TenantEntity {

    private static final long serialVersionUID = 1L;

    private Long equipmentId;
    private Integer pointDataNumber;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime collectionTime;

    private String pointCode;

    private String pointName;

    private String unit;

    private String formula;

    private String readAndWrite;

    private Integer readInstruction;

    private Integer writeInstruction;

    private Integer isEnable;

    private Integer registerId;

    private Integer quantity;

    private String dataType;

    private String source;

    private String agreementType;

    private String stationAddress;
}